import request from '@/utils/request'

// 分页提现申请查询
export function getWithdrawalApplicationListAPI(params) {
  return request({
    url: '/admin/statistic/queryembodylog',
    method: 'get',
    params
  })
}

// 提现申请顶部提现总数接口
export function getWithdrawalMoneyAPI(params) {
  return request({
    url: '/admin/statistic/queryembodyrecent',
    method: 'get',
    params
  })
}

// 查询提现详情
export function getWithdrawalMoneyDetailAPI(params) {
  return request({
    url: '/admin/user/queryembodyonid',
    method: 'get',
    params
  })
}

// 详情页同意提现  perrmit 1：批准，0驳回
export function applicationAPI(params) {
  return request({
    url: '/admin/user/permitembody',
    method: 'post',
    params
  })
}

// 昨天今日订单提现金额统计(交易概况页面)
export function getOrderMoneyAPI(params) {
  return request({
    url: '/admin/statistic/querytraderecent',
    method: 'get',
    params
  })
}

// 订单总金额 - 按日查询(交易概况折线图接口)
export function getTransationByDayAPI(params) {
  return request({
    url: '/admin/statistic/queryordersum',
    method: 'get',
    params
  })
}

// 分页查询充值提现信息
export function getRechargeWithdrawAPI(params) {
  return request({
    url: '/admin/statistic/querysurvey',
    method: 'get',
    params
  })
}

// 查询管理员提现批准日志
export function getAdminLogAPI(params) {
  return request({
    url: '/admin/statistic/queryembodyoperation',
    method: 'get',
    params
  })
}


// 导出
export function getExportExcelAPI(params) {
  return request({
    url: '/admin/statistic/exportsurvey',
    method: 'get',
    responseType: 'arraybuffer',
    params
  })
}
